
#!/bin/bash
BASEDIR=$(dirname "$0")
cd $BASEDIR/..

export XMAKE_GLOBALDIR=$(pwd)

xmake g --network=private
xmake f -p cross \
    --sdk=/home/wangyang/toolchain/gcc-linaro-5.4.1-2017.05-x86_64_arm-linux-gnueabihf \
    --APP_STATIC_LIB=y \
    --BUILD_RAM_INIT=y \
    --BUILD_TUNTAP=y \
    -vD \
    -y \
    -m debug \
    -a armv7
xmake project -k compile_commands
xmake -vD -w
xmake install -o install

